package com.ruoyi.system.service.estate.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.estate.PetVaccineMapper;
import com.ruoyi.system.domain.estate.PetVaccine;
import com.ruoyi.system.service.estate.IPetVaccineService;

/**
 * 宠物疫苗接种记录Service业务层处理
 * 
 * @author ruoyi
 */
@Service
public class PetVaccineServiceImpl implements IPetVaccineService 
{
    @Autowired
    private PetVaccineMapper petVaccineMapper;

    /**
     * 查询宠物疫苗接种记录
     * 
     * @param vaccineId 疫苗记录ID
     * @return 宠物疫苗接种记录
     */
    @Override
    public PetVaccine selectPetVaccineById(Long vaccineId)
    {
        return petVaccineMapper.selectPetVaccineById(vaccineId);
    }

    /**
     * 查询宠物疫苗接种记录列表
     * 
     * @param petVaccine 宠物疫苗接种记录
     * @return 宠物疫苗接种记录
     */
    @Override
    public List<PetVaccine> selectPetVaccineList(PetVaccine petVaccine)
    {
        return petVaccineMapper.selectPetVaccineList(petVaccine);
    }

    /**
     * 新增宠物疫苗接种记录
     * 
     * @param petVaccine 宠物疫苗接种记录
     * @return 结果
     */
    @Override
    public int insertPetVaccine(PetVaccine petVaccine)
    {
        petVaccine.setDelFlag("0");
        return petVaccineMapper.insertPetVaccine(petVaccine);
    }

    /**
     * 修改宠物疫苗接种记录
     * 
     * @param petVaccine 宠物疫苗接种记录
     * @return 结果
     */
    @Override
    public int updatePetVaccine(PetVaccine petVaccine)
    {
        return petVaccineMapper.updatePetVaccine(petVaccine);
    }

    /**
     * 批量删除宠物疫苗接种记录
     * 
     * @param vaccineIds 需要删除的疫苗记录ID
     * @return 结果
     */
    @Override
    public int deletePetVaccineByIds(Long[] vaccineIds)
    {
        return petVaccineMapper.deletePetVaccineByIds(vaccineIds);
    }

    /**
     * 删除宠物疫苗接种记录信息
     * 
     * @param vaccineId 疫苗记录ID
     * @return 结果
     */
    @Override
    public int deletePetVaccineById(Long vaccineId)
    {
        return petVaccineMapper.deletePetVaccineById(vaccineId);
    }
} 